#pragma once
#ifndef __TOUCHABLESPRITE_SCENE_H__
#define __TOUCHABLESPRITE_SCENE_H__

#include "cocos2d.h"
using namespace cocos2d;

class TouchAbleSprite :public CCSprite,public CCTargetedTouchDelegate
{
public:
	void onEnter();
	void onExit();

	virtual bool ccTouchBegan(CCTouch* touch, CCEvent* event);
	virtual void ccTouchMoved(CCTouch* touch, CCEvent* event);
	virtual void ccTouchEnded(CCTouch* touch, CCEvent* event);

	CREATE_FUNC(TouchAbleSprite);
};

typedef enum _FoodState
{
	kStateIdle = 0,
	kStateTosseding,
	kStateTossed
} FoodState;

typedef enum _FoodType
{
	kTypeWatermelon = 0,
	kTypeStrawberry,
	kTypePineapple,
	kTypeGrapes,
	kTypeBanana,
	kTypeBomb
} FoodType;

class FoodSprite : public TouchAbleSprite
{
public:
	CC_SYNTHESIZE(FoodState, _state, State);
	CC_SYNTHESIZE(FoodType, _foodtype, Type);
	CREATE_FUNC(FoodSprite);

};

#endif